package com.goldze.mvvmhabit.ui.new_ui;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.goldze.mvvmhabit.entity.DemoEntity;
import com.goldze.mvvmhabit.entity.NewUiEntity;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;
import me.goldze.mvvmhabit.http.BaseResponse;

public class ItemNewUiViewModel extends ItemViewModel<NewUiViewModel> {
    public ObservableField<BaseResponse.Row> entity = new ObservableField<>();

    public ItemNewUiViewModel(@NonNull NewUiViewModel viewModel, BaseResponse.Row entity) {
        super(viewModel);
        this.entity .set(entity);

    }

    public BindingCommand  itemClicke=new BindingCommand(new BindingAction() {
        @Override
        public void call() {
                viewModel.finish();
        }
    });
    public BindingCommand  itemLongClicke=new BindingCommand(new BindingAction() {
        @Override
        public void call() {

        }
    });
}
